package com.brick.entity;

import java.io.Serializable;

public class Commodity extends BaseEntity implements Serializable {
    private String id;
    /**
     * 商品名称
     */
    private String productName;
    /**
     * 价格
     */
    private Double price;
    private Integer number;

    /**
     * 修改商品数量
     */
    private Integer updateNumber;

    public Integer getUpdateNumber() {
        return updateNumber;
    }

    public void setUpdateNumber(Integer updateNumber) {
        this.updateNumber = updateNumber;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    /**
     * 原产地
     */
    private String placeOfOrigin;
    /**
     * 创建日期
     */
    private String dateline;
    /**
     * 状态
     */
    private Integer state;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getPlaceOfOrigin() {
        return placeOfOrigin;
    }

    public void setPlaceOfOrigin(String placeOfOrigin) {
        this.placeOfOrigin = placeOfOrigin;
    }

    public String getDateline() {
        return dateline;
    }

    public void setDateline(String dateline) {
        this.dateline = dateline;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Commodity{" +
                "id='" + id + '\'' +
                ", productName='" + productName + '\'' +
                ", price=" + price +
                ", placeOfOrigin='" + placeOfOrigin + '\'' +
                ", dateline='" + dateline + '\'' +
                ", state=" + state +
                '}';
    }
}
